$(function(){
	$("form.step1").validate({
		rules: {
			userName: 'required',
			code: 'required'
		},
		messages: {
			userName: {
				required: "请输入账号"
			},
			code: {
				required: "请输入验证码"
			}
		}
	});
	
	$('#validateCodeImg, #js_refresh_code').click(function(){
		$('#validateCodeImg').attr('src', "/validateCode/?t=" + new Date().getTime());
	});
});